home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.mactech.com 2010
/
ftp.mactech.com.tar
/
ftp.mactech.com
/
machack
/
Hacks97
/
WarriorsProgress.sit
/
Warrior’s Progress
/
source code
/
Source
/
Libraries
/
Activation
/
Focus.h
< prev
next >
Wrap
Text File
|
1997-06-28
|
749b
|
48 lines
// Focus.h
#ifndef Focus_h
#define Focus_h
#ifndef ListOf_h
#include "ListOf.h"
#endif
class Focus
{
friend class RootFocus;
friend class Activator;
private:
ListOf< Activator > activators;
Focus *const parent;
Focus *favoredChild;
uint32 children;
bool active;
Focus();
void Activate();
void Deactivate();
// not implemented:
Focus( const Focus& );
void operator=( const Focus& );
public:
Focus( Below, Focus& parent );
~Focus();
Focus *Parent() const { return parent; }
bool Active() const { return active; }
Focus *FavoredChild() const { return favoredChild; }
void FavorChild( Focus& );
void FavorNoChild();
void BeFavored();
void BeDisfavored();
};
#endif